package com.sky.convert;

import com.sky.dto.EmployeeDTO;
import com.sky.entity.Employee;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 功能：类型转化
 * 作者：yedou
 * 日期：2025/2/28 17:24
 */
@Mapper
public interface EmployeeConvert {
    EmployeeConvert INSTANCE = Mappers.getMapper(EmployeeConvert.class);

    // Dto转entity
    Employee EmployeeDtoToEntity(EmployeeDTO employeeDTO);
}